Dreamweaver Article

Migrating from Microsoft FrontPage to Macromedia Dreamweaver MX 2004


Table of Contents

  1. Introduction
  2. Introducing the Dreamweaver Workspace
  3. Streamlining Your Workspace
  4. Setting Up a Web and Managing Files
  5. Working with Text
  6. Working with Styles and Style Sheets
  7. Working with Images
  8. Creating Links
  9. Creating Tables
  10. Using Layout Mode to Position Text and Images
  11. Using Predesigned Pages to Get a Head Start
  12. Making Quick Edits to Code
  13. Working in Code View
  14. Editing Code in Code View
  15. Customizing Your Coding Environment
  16. Taking the Next Steps

Editing Code in Code View

You can use Dreamweaver to edit your code more efficiently and with less errors. For example, you can use code hints to suggest code as you type in Code view.

To use code hints:

  1. Start typing in Code view.

    When you type certain characters, a list appears suggesting options to complete your entry.

    Code hints

    Figure 42. Code hints

  2. Select an item in the list or press Enter to insert it in your code.

If you prefer to edit tags in a structured dialog box, you can use a tag editor.

To use a tag editor:

  1. Right-click inside a tag in your code and select Edit Tag from the shortcut menu.

    The tag editor for that tag appears.

    The Tag editor dialog box

    Figure 43. The Tag editor dialog box

  2. Make your edits in the dialog box and click OK.

    Dreamweaver updates the tag in your code accordingly.

If you prefer to edit tags in a property sheet similar to the ones found in integrated development environments such as Microsoft Visual Studio, you can use the Tag inspector.

To use the Tag inspector:

  1. Open the Tag inspector (Window > Tag Inspector).
  2. Click anywhere inside a tag in your code.

    If the tag supports attributes, Dreamweaver displays them and their current values in the Tag inspector’s property sheet.

    The tag inspector

    Figure 44. The tag inspector

  3. Make the changes to the tag in the property sheet.

    Click an attribute to type a value or, if the attribute takes predefined values, select one from a list.

    You can also change any CSS style applied to the tag by clicking the Relevant CSS tab in the Tag inspector and selecting the CSS rule you want to modify.

  4. Click elsewhere in the panel or press Enter to update the tag in your code.